<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form action="yzm3.php" method="post">
    邮箱：<input id="email" type="text" name="email">
    <br>
    验证码：<input type="text" name="yzm">
    <button id="send" type="button">发送邮箱验证码</button>
    <br>
    <button type="submit">提交</button>
</form>

<script>

var s = document.getElementById('send');
var mail = document.getElementById('email');

s.onclick = function () {

    var email = mail.value;
    var re = /\w+@\w+.[a-zA-Z]{2,10}/;

    // 1435681170@qq.com
    // btczmhgcuabwbaaf
}

</script>
</body>
</html>